-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Fix][Workflow] doxygen Doxyfile 返回错误 但是仍然生成成功 #10596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
📌 Code Review Assignment🏷️ Tag: workflowReviewers: Rbb666 kurisaW supperthomas Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-08-11 16:10 CST)
📝 Review Instructions
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue where the Doxygen workflow was failing due to errors in the Doxyfile configuration, but still needed to generate documentation successfully. The change modifies error handling to allow the workflow to continue even when Doxygen encounters errors.
Key changes:
- Wrapped the
doxygen Doxyfile
command in conditional error handling - Added verification to check if HTML documentation was generated successfully
- Removed the
cat Doxyfile
command which appears to be debug code
echo "Doxygen failed, but workflow will continue." | ||
fi | ||
# 检查生成结果 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The comment is in Chinese while the rest of the workflow file appears to use English. Consider using English for consistency: '# Check generation results'.
# 检查生成结果 | |
# Check generation results |
Copilot uses AI. Check for mistakes.
if ! doxygen Doxyfile; then | ||
echo "Doxygen failed, but workflow will continue." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider capturing and logging the specific Doxygen error output to aid in debugging. You could redirect stderr to a variable or file for later inspection.
if ! doxygen Doxyfile; then | |
echo "Doxygen failed, but workflow will continue." | |
if ! doxygen Doxyfile 2> doxygen_error.log; then | |
echo "Doxygen failed, but workflow will continue." | |
echo "---- Doxygen error output ----" | |
cat doxygen_error.log | |
echo "-----------------------------" |
Copilot uses AI. Check for mistakes.
为啥要提交这个 pr?PR 中能够详细描述一下? 但是比较奇怪的是,原来代码中执行完 doxygen 后会运行 cat,这个 pr 修改把 cat 这一步直接删掉了,这是何考虑?原来 cat 的目的是啥?这次修改有没有破坏原来的逻辑? |
之前的并未执行到cat就报错退出了 所以每次的pr提交 都会提示这个流程报错 doxygen的执行结果返回值 或者其他问题 导致了 流程终止, 我在本地测试的测试下如此调整输出了结果是正常可用的 |
f091c56
to
906e667
Compare
doxygen有错误,需要修复错误,才能CI通过。 |
cat Doxyfile |
doxygen 的buld错误我修好了,见 但我觉得本 PR 增加对 doxygen build 失败的检查还是有必要的。而且我建议以后对所有 pr 有注释修改的情况都 run doxygen 的 ci 检查。如果觉得检查 pr 是否修改了注释比较麻烦,也可以每个 pr 都强制检查 doxygen build。 |
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
doxygen工作流总是出现错误 无法获得最新的官方文档
你的解决方案是什么 (what is your solution)
经过测试排查日志doxygen已经成功执行,但是不清楚为嘛给出错误结果导致终止,
其输出的html文档也是正常可使用的,因此做个条件拦截,即使提示失败也正常执行下去,
cat doxygen作用不明 应该无实际意义,因此移除
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up